package com.itheima.duotai;

public class Test02 {

    public static void main(String[] args) {
        Cai cai = new Cai();
        cai.sing();
        //接口时一种数据类型
        //多态
        Inter i= new Cai();
        i.sing();
    }
}


interface  Inter{

    void  sing();

}
class  Cai implements Inter{


    @Override
    public void sing() {
        System.out.println("只因你太美");
    }
}